<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>{{message}}</p>
        <input type="text" v-model="message" /><br>
        <textarea v-model="message"></textarea><br>
        单个复选框：<input type="checkbox" v-model="message" /><br>
        多个复选框：
        A<input type="checkbox" v-model="checkboxmsg" value="A" />
        B<input type="checkbox" v-model="checkboxmsg" value="B" />
        C<input type="checkbox" v-model="checkboxmsg" value="C" />
        -----{{checkboxmsg}}<br>
        单选框
        A:<input type="radio" v-model="radioMsg" value="A" />
        B:<input type="radio" v-model="radioMsg" value="b" />
        C:<input type="radio" v-model="radioMsg" value="c" />
        ----{{radioMsg}}<br>

        下拉选框：
        <select v-model="selectMsg">
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
        </select>
        --> {{selectMsg}}<br>
        复选框：
        <input type="checkbox" v-model="checkboxMsg1"  />
        ----{{checkboxMsg1}}<br>
        下选框:
        <select v-model="selectMsg">
            <option v-for="opt in selectOptions" :value="opt.value">{{opt.text}}</option>
        </select>
        -------{{selectMsg}}<br>
        修饰符：
        <input type="text" v-model.lazy="message" />
        <p>{{message}}</p>
    </div>
</body>
<script src="https://unpkg.com/vue@next"></script>
<script>
    const app = {
        data() {
            return {

                message: 'hello',
                checkboxmsg: [],
                selectMsg: '',
                checkboxMsg1: '是',
                radioMsg: '',
                selectOptions: [
                    { text: '1', value: { content: '1' } },
                    { text: '2', value: { content: '2' } },
                    { text: '3', value: { content: '3' } },
                ]

            }
        },
    }
    Vue.createApp(app).mount("#app");
</script>

</html>